import akshare as ak
a=[]
b=[]
df = ak.macro_cnbs()
print(df)

'''
for item in macro_list:
    for lie in item:
        if type(lie)==float:
            lie=round(lie,1)
        #print(type(lie))
        print(lie)'''
#df=df['居民部门'].map(lambda x:format(x,'.3'))
df1=df.round(1)
print(df1)

macro_list=df1.values.tolist()
print(macro_list)

#获取列名，三种方法
print(list(df))
print(type(list(df)))

print(df.columns.values)
print(type(df.columns.values))

print(df.columns)
print(type(df.columns))

print(list(df.columns))
